package com.example.xungeng2.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.xungeng2.mapper.ShiduanMapper;
import com.example.xungeng2.pojo.Shiduan;
import com.example.xungeng2.service.ShiduanService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ShidunaServiceImpl extends ServiceImpl<ShiduanMapper, Shiduan> implements ShiduanService {
    @Autowired
    private ShiduanMapper shiduanMapper;
    @Override
    public Page<Shiduan> selectAll(long page, long limit) {
        Page<Shiduan> shiduanPage = shiduanMapper.selectPage(new Page<>(page, limit), null);
        return shiduanPage;
    }
}
